

<div class="pageContent">
	<form method="post" action="<?=$this->uri->uri_string()?>" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
	<input value="ok" name="submit" type="hidden"/>
		<div class="pageFormContent" layoutH="57">
			<dl class="nowrap">
				<dt>图片：</dt>
				<dd>
					<input class="required" readonly="readonly" value="<?=$shicai_info['pic']?>" name="pic.fileName" type="text" size="60" />
					<a class="btnAttach" href="<?=site_url('manage/admin_update/index/shicai')?>" lookupGroup="pic" width="560" height="200" title="附件">附件</a>
				</dd>
			</dl>
			<div class="divider"></div>
			<dl>
				<dt>食材名称：</dt>
				<dd><input class="required" value="<?=$shicai_info['title']?>" name="title" type="text" size="30" /></dd>
			</dl>
			<dl>
				<dt>食材别名：</dt>
				<dd><input value="<?=$shicai_info['alias']?>" name="alias" type="text" size="30" /></dd>
			</dl>
			<dl>
				<dt>所在分类：</dt>
				<dd>
					<input class="required" value="<?=$shicai_info['pid']?>" name="pid" type="text" size="10" /> 
					<input class="required" value="<?=$shicai_info['classid']?>" name="classid" type="text" size="10" />
				</dd>
			</dl>
			<dl>
				<dt>修改时间：</dt>
				<dd><input type="text" name="time" value="<?=$shicai_info['time']?>" class="date" dateFmt="yyyy-MM-dd HH:mm" readonly="true"/>
				<a class="inputDateButton" href="javascript:;">选择</a></dd>
			</dl>
			<dl>
				<dt>浏览量：</dt>
				<dd><input class="required" value="<?=$shicai_info['views']?>" name="views" type="text" size="30" /></dd>
			</dl>
			<dl>
				<dt>时令季节：</dt>
				<dd>
					<input type="radio" <?php if ($shicai_info['season'] == 1){echo 'checked';}?> name="season" value="1"> 春季 
					<input type="radio" <?php if ($shicai_info['season'] == 2){echo 'checked';}?> name="season" value="2"> 夏季 
					<input type="radio" <?php if ($shicai_info['season'] == 3){echo 'checked';}?> name="season" value="3"> 秋季 
					<input type="radio" <?php if ($shicai_info['season'] == 4){echo 'checked';}?> name="season" value="4"> 冬季 
				</dd>
			</dl>
			<dl class="nowrap">
				<dt>食物相克：</dt>
				<dd>
					<table class="list nowrap itemDetail" addButton="新建" width="100%">
						<thead>
							<tr>
								<th type="text" name="xiangke[shicai][]" size="12">相克食物</th>
								<th type="text" name="xiangke[yingxiang][]" size="12">影响</th>
								<th type="del" width="60">操作</th>
							</tr>
						</thead>
						<tbody>
							<?php $xiangke_array = explode(',',$shicai_info['xiangke']);?>
							<?php foreach( $xiangke_array as $xiangke_array2) :?>
							<?php $xiangke = explode('-',$xiangke_array2);?>
							<tr class="unitBox">
								<td><input type="text" name="xiangke[shicai][]" value="<?=@$xiangke[0]?>" size="12" class="textInput valid"></td>
								<td><input type="text" name="xiangke[yingxiang][]" value="<?=@$xiangke[1]?>" size="12" class="textInput"></td>
								<td><a href="javascript:void(0)" class="btnDel ">删除</a></td>
							</tr>
							<?php endforeach?>
						</tbody>
					</table>
				</dd>
			</dl>
			<dl class="nowrap">
				<dt>食物相生：</dt>
				<dd>
					<table class="list nowrap itemDetail" addButton="新建" width="100%">
						<thead>
							<tr>
								<th type="text" name="xiangsheng[shicai][]" size="12">相生食物</th>
								<th type="text" name="xiangsheng[yingxiang][]" size="12">影响</th>
								<th type="del" width="60">操作</th>
							</tr>
						</thead>
						<tbody>
							<?php $xiangsheng_array = explode(',',$shicai_info['xiangsheng']);?>
							<?php foreach( $xiangsheng_array as $xiangsheng_array2) :?>
							<?php $xiangsheng = explode('-',$xiangsheng_array2);?>
							<tr class="unitBox">
								<td><input type="text" name="xiangsheng[shicai][]" value="<?=@$xiangsheng[0]?>" size="12" class="textInput valid"></td>
								<td><input type="text" name="xiangsheng[yingxiang][]" value="<?=@$xiangsheng[1]?>" size="12" class="textInput"></td>
								<td><a href="javascript:void(0)" class="btnDel ">删除</a></td>
							</tr>
							<?php endforeach?>
						</tbody>
					</table>
				</dd>
			</dl>

			<dl class="nowrap">
				<dt>营养成分：</dt>
				<dd>
					<table class="list nowrap itemDetail" addButton="新建" width="100%">
						<thead>
							<tr>
								<th type="text" name="trophos[str][]" size="12" fieldClass="required">营养成分</th>
								<th type="text" name="trophos[int][]" size="12" fieldClass="required">含量</th>
								<th type="del" width="60">操作</th>
							</tr>
						</thead>
						<tbody>
							<?php $tropho_array = explode(',',$shicai_info['tropho']);?>
							<?php foreach( $tropho_array as $tropho_array2) :?>
							<?php $tropho = explode('-',$tropho_array2);?>
							<tr class="unitBox">
								<td><input type="text" name="trophos[str][]" value="<?=@$tropho[0]?>" size="12" class="required textInput valid"></td>
								<td><input type="text" name="trophos[int][]" value="<?=@$tropho[1]?>" size="12" class="required textInput number"></td>
								<td><a href="javascript:void(0)" class="btnDel ">删除</a></td>
							</tr>
							<?php endforeach?>
						</tbody>
					</table>
				</dd>
			</dl>
			<dl class="nowrap">
				<dt>食材介绍：</dt>
				<dd><textarea cols="65" rows="5" name="intro"><?=$shicai_info['intro']?></textarea></dd>
			</dl>
			<dl class="nowrap">
				<dt>功效：</dt>
				<dd><textarea cols="65" rows="5" name="effect"><?=$shicai_info['effect']?></textarea></dd>
			</dl>
			<dl class="nowrap">
				<dt>营养价值：</dt>
				<dd><textarea cols="65" rows="5" name="worth"><?=$shicai_info['worth']?></textarea></dd>
			</dl>
			<dl class="nowrap">
				<dt>适用人群：</dt>
				<dd><textarea cols="65" rows="5" name="crowd"><?=$shicai_info['crowd']?></textarea></dd>
			</dl>
			<dl class="nowrap">
				<dt>如何挑选：</dt>
				<dd><textarea cols="65" rows="5" name="pick"><?=$shicai_info['pick']?></textarea></dd>
			</dl>
			<dl class="nowrap">
				<dt>储存方法：</dt>
				<dd><textarea cols="65" rows="5" name="store"><?=$shicai_info['store']?></textarea></dd>
			</dl>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
</div>